#ifndef PARSER_H
#define PARSER_H

#include <string>
#include <iostream>
#include <sstream>
#include <cstdlib>

using namespace std;

namespace newsclient {

        class Core;

        #define CMD_LIST "list"
        #define CMD_CREATE "create"
        #define CMD_DELETE "delete"
        #define CMD_GET "get"

        class Parser {
        public:
                Parser(Core* c) { core = c; }
                bool parse();

        private:
                string input;
                Core* core;
        };
}

#endif
